package com.manlitech.cloudboot.basebootconfig.redis.scenes.delayjob.service;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.manlitech.cloudboot.common.enums.ResultEnums;
import com.manlitech.cloudboot.basebootconfig.exception.MyException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 延时任务
 * @author shensg
 */
@Service
public class DelayService {

    Logger logger = LoggerFactory.getLogger(DelayService.class);


    /**
     * json 字符串
     * @param delayMsg
     */
    public void mainDelaySwitch(String queueName , String delayMsg){
        JSONObject object = JSON.parseObject(delayMsg);
        //订单待支付超时关闭
        if(queueName.equals("")){

            return;
        }
        throw new MyException(ResultEnums.NO_FOUND_QUEUE_NAME_JOB);


    }
}
